package com.linzm.j2eetype.businessdelegate02;

/**
 * @Author zimingl
 * @Date 2023/4/16 15:12
 * @Description: BusinessDelegatePatternDemo
 */
public class BusinessDelegatePatternDemo {
    public static void main(String[] args) {

        BusinessDelegate businessDelegate = new BusinessDelegate();
        businessDelegate.setServiceType("EJB");

        Client client = new Client(businessDelegate);
        client.doTask();

        businessDelegate.setServiceType("JMS");
        client.doTask();
    }
}
